package com.zretc.testpatt;

public class TestPhone {

	public static void main(String[] args) {
		// 去工厂拿对象
		Phone huweiPhone = PhoneFactory.createPhone("huawei");

		huweiPhone.takePhoto();

		Phone miPhone = PhoneFactory.createPhone("mi");

		miPhone.takePhoto();
	}

}
